﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraController : MonoBehaviour {
	private static CameraController instance;
	public Animator camAnim;

	private void Awake()
	{
		instance = this;
	}

	private void Start()
	{
		if (camAnim == null)
			camAnim = GetComponent<Animator> ();
	}

	public static void Shake()
	{
		instance.camAnim.Play ("shake");
	}
}
